package com.atguigu.yygh.host.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author DongYu Zhou
 * @date 2022/6/24 18:48
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    Department getByHoscodeAndDepcode(String hoscode, String depcode);


    List<Department> getByHoscode(String hoscode);
}
